#include "map.h"


Map :: Map() {
}


Map :: ~Map() {
}


void Map :: render(int x, int y, int viewWidth, int viewHeight) {

    /*Tile tile;
    primerTile = (y div tileHeight) * width + (x div tileWidth)
    int top, left;
    top = (y % tileHeight) - tileHeight;
    left = (x % tileWidth) - tileWidth;
    int horizontalTile = viewWidth div tileWidth;
    int verticalTile = viewHeight div tileHeight;
    int size = horizontalTile * verticalTile;;
    for (int i = 0; i < size; i++) {
        tile = getTile(
    }*/
}

const Tile& Map :: getTile(int x, int y) const {
    if (x < 0 || y > width || y < 0 || y > height){
        throw("Error en el indice de getSprite");
    }

    tileMap[x + width*y];
}
